package com.hyf.glidedemo.activity;

import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.hyf.glidedemo.BaseActivity;
import com.hyf.glidedemo.R;
import com.hyf.glidedemo.adapter.GlideRecyclerViewAdapter;

import butterknife.BindView;

public class GlideRecyclerViewActivity extends BaseActivity {

    @BindView(R.id.rv_glide)
    RecyclerView mRecyclerView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_glide_recycler_view);

        GlideRecyclerViewAdapter adapter = new GlideRecyclerViewAdapter(this);
        mRecyclerView.setAdapter(adapter);
        mRecyclerView.setLayoutManager(new LinearLayoutManager(this));
    }
}
